package src;

import org.junit.Assert;
import org.junit.Test;

public class _TestImpl {

	@Test
	public void testAccount(){
		AccountHandlerImpl acc = new AccountHandlerImpl();
		acc.depositAmmount(50);
		Assert.assertEquals("Balance Should be 50",50,acc.getBalance());//Step 1
		
		
		AccountHandlerImpl deductAcc = acc.deduct(10);
		Assert.assertNotNull("deductAcc must be non null: ",deductAcc);//Step 2
		
		Assert.assertEquals("New Balance Should be 40",40,acc.getBalance());//Step 3
		
		
	}
	
}
 